//
//  EmploymentDetBottom.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/27.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "EmploymentDetBottom.h"

@interface EmploymentDetBottom ()
@property (weak, nonatomic) IBOutlet UILabel *leftLabel;
@property (weak, nonatomic) IBOutlet UILabel *rightLabel;

@end

@implementation EmploymentDetBottom

- (void)awakeFromNib{
    
    [super awakeFromNib];
    
    self.backgroundColor = viewBgGrey;
    
    self.leftLabel.font = MYFONT(17);
    
    self.rightLabel.font = MYFONT(17);
}


- (void)setModel:(EmploymentListModel *)model{
    
    _model = model;
    
    self.leftLabel.text = [NSString stringWithFormat:@"联系人: %@",_model.linkman_name];
    
//    self.rightLabel.text = [NSString stringWithFormat:@"%@",_model.linkman_tel];

}

- (IBAction)callPhoneDidTap:(UIButton *)sender {
    
    NSMutableString * str = [[NSMutableString alloc] initWithFormat:@"telprompt://%@",self.model.linkman_tel];
    
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
